BooksOne:
  get:
    tags:
      - books
    operationId: getBooks
    x-lg-handler: 'App\Http\ApiV1\Modules\Books\Controllers\BooksController@get'
    x-lg-skip-request-generation: true
    summary: Получение объекта типа Books
    description: Получение объекта типа Books
    parameters:
      - $ref: '../index.yaml#/components/parameters/PathId'
    responses:
      "200":
        description: Успешный ответ
        content:
          application/json:
            schema:
              $ref: './schemas/books.yaml#/BooksResponse'
      "404":
        $ref: '../index.yaml#/components/responses/NotFound'
      "500":
        $ref: '../index.yaml#/components/responses/ServerError'

Books:
  post:
    tags:
      - books
    operationId: createBooks
    summary: Запрос на создание book
    description: Запрос на создание book
    x-lg-handler: 'App\Http\ApiV1\Modules\Books\Controllers\BooksController@create'
    requestBody:
      required: true
      content:
        application/json:
          schema:
            $ref: './schemas/books.yaml#/CreateBooksRequest'
    responses:
      "201":
        description: Выполнено успешно
        content:
          application/json:
            schema:
              $ref: './schemas/books.yaml#/BooksResponse'
      "400":
        $ref: '../index.yaml#/components/responses/BadRequest'
      "500":
        $ref: '../index.yaml#/components/responses/ServerError'